package br.com.naybee.framework.client.componente.gwt.web;

import com.google.gwt.dom.client.Element;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.HasClickHandlers;
import com.google.gwt.event.shared.HandlerRegistration;
import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.ui.ComplexPanel;

public class I extends ComplexPanel implements HasClickHandlers {

	private Element element = DOM.createElement("i");

	public I() {
		setElement(element);
	}

	public void setClassName(String className) {
		this.element.setClassName(className);
	}

	public String getClassName(String className) {
		return this.element.getClassName();
	}

	public void setText(String text) {
		element.setInnerText(text);
	}

	public String getText() {
		return element.getInnerText();
	}

	public HandlerRegistration addClickHandler(ClickHandler handler) {
		return addDomHandler(handler, ClickEvent.getType());
	}

}
